package com.front.managementfront.dictionary.vo;

import com.front.managementfront.dictionary.entity.HktsDictionaryItem;
import com.front.managementfront.dictionary.entity.HktsDictionaryList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @ClassNameDictionaryVo
 * @Description
 * @Author yck
 * @Date2021-05-12 21:23
 * @Version V1.0
 **/
@ApiModel(description = "用于封装字典及字典项")
@Data
public class DictionaryVo extends HktsDictionaryList {
    @ApiModelProperty(value = "字典项集合")
    private List<HktsDictionaryItem> items;

    public DictionaryVo(HktsDictionaryList list, List<HktsDictionaryItem> items) {
        this.setDictionaryKey(list.getDictionaryKey());
        this.setListName(list.getListName());
        this.setId(list.getId());
        this.setIsMultiple(list.getIsMultiple());
        this.items=items;
    }
}
